import pandas as pd
import altair as alt
 
# Create data for the DataFrame
data = {'Name': ['Alice', 'Bob', 'Charlie'],
        'Age': [25, 30, 35],
        'City': ['New York', 'Paris', 'London']
}
 
 
# Create the DataFrame from the data
df = pd.DataFrame(data)
 
# Create the chart
chart = alt.Chart(df).mark_bar(
).encode(
    x = 'Age:Q',     
    y = 'Name:N' 
)
 
chart.save('bar-chart.html')

